﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class ChiTietMonAnBUS
    {
        private ChiTietMonAnDTO info = new ChiTietMonAnDTO();
        private ChiTietMonAnDAO data = new ChiTietMonAnDAO();

        public void ThemMonAn(ChiTietMonAnDTO ctma)
        {
            data.ThemMonAn(ctma);
        }

        public List<ChiTietMonAnDTO> GetChiTietMonAn(int mamonan)
        {
            return data.GetChiTietMonAn(mamonan);
        }

        public void CapNhatChiTietMonAn(ChiTietMonAnDTO dto)
        {
            data.CapNhatChiTietMonAn(dto);
        }

        public void XoaChiTietMonAn(int mamonan, int mannvl)
        {
            data.XoaChiTietMonAn(mamonan, mannvl);
        }
    }
}
